[BITS 32]


[GLOBAL _dosmemputb]
[GLOBAL _dosmemgetb]
[GLOBAL _dosmemputw]
[GLOBAL _dosmemgetw]
[GLOBAL _dosmemputl]
[GLOBAL _dosmemgetl]





; Portability wrappers (put and get are equivalent)

_dosmemputb: nop
_dosmemgetb:
	push esi
	push edi
	mov esi,[esp+12]
	mov ecx,[esp+16]
	mov edi,[esp+20]
	cld
	rep movsb
	pop edi
	pop esi
	ret

_dosmemputw: nop
_dosmemgetw:
	push esi
	push edi
	mov esi,[esp+12]
	mov ecx,[esp+16]
	mov edi,[esp+20]
	cld
	rep movsw
	pop edi
	pop esi
	ret

_dosmemputl: nop
_dosmemgetl:
	push esi
	push edi
	mov esi,[esp+12]
	mov ecx,[esp+16]
	mov edi,[esp+20]
	cld
	rep movsd
	pop edi
	pop esi
	ret


